package com.atguigu.campusintelligentassistantsystem.repository;

import com.atguigu.campusintelligentassistantsystem.entity.ActivityRegistration;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ActivityRegistrationRepository extends JpaRepository<ActivityRegistration, Long> {
    List<ActivityRegistration> findByActivityId(Long activityId);
    List<ActivityRegistration> findByStudentId(Long studentId);
    ActivityRegistration findByActivityIdAndStudentId(Long activityId, Long studentId);
}